<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
<%@page import="org.apache.commons.lang3.StringUtils"%>
<html xmlns:fb="http://ogp.me/ns/fb#">
<head>
	<link type="text/css" href="lib/jquery/css/start/jquery-ui-1.10.2.custom.css" rel="Stylesheet"/>

	<%for(String cssFile:(Iterable<String>)request.getAttribute("listFiles_css_common")){%>
		<link type="text/css" href="<%=StringUtils.removeStart(cssFile,"/")%>" rel="Stylesheet"/>
	<%}%>

	<%for(String cssFile:(Iterable<String>)request.getAttribute("listFiles_css")){%>
		<link type="text/css" href="<%=StringUtils.removeStart(cssFile,"/")%>" rel="Stylesheet" ui_role="style_option"/>
	<%}%>

	<script type="text/javascript" src="lib/jquery/js/jquery-1.9.0.js"></script>
	<script type="text/javascript" src="lib/jquery/js/jquery-ui-1.10.0.custom.js"></script>
	<script type="text/javascript" src="lib/ejs/ejs_production.js"></script>

	<script type="text/javascript" src="js_manual_load/fixes.js"></script>
	<script type="text/javascript" src="js_manual_load/jquery_applying.js"></script>
	<script type="text/javascript" src="js_manual_load/dispatching.js"></script>
	<script type="text/javascript" src="js_manual_load/ejs_loading.js"></script>

	<%for(String jsFile:(Iterable<String>)request.getAttribute("listFiles_js")){%>
		<script type="text/javascript" src="<%=StringUtils.removeStart(jsFile,"/")%>"></script>
	<%}%>

	<script type="text/javascript" src="js_manual_load/periodic.js"></script>

	<script type="text/javascript">
		facebookUserId=<%=request.getAttribute("facebookUserId")%>;
		facebookAppUrl='<%=request.getAttribute("appUrl")%>';
		$(function(){
			loadHomeScreen({
			<%if(null!=request.getAttribute("fbref")){%>
				fbref:'<%=request.getAttribute("fbref")%>'
				<%}%>
			});
			loadFacebookSDK('<%=request.getAttribute("appId")%>');
		});
	</script>
</head>
<body>
	<div id="fb-root"></div>
	<div id="stylesPicker" style="position:absolute"></div>
	<div id="mainContainer" container="main" style="width:98%;height:100%">
		<div style="text-align:center;line-height:200px">
			<h1>Loading</h1>
		</div>
	</div>
</body>
</html>
